package com.ruoyi.hatha.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hatha.mapper.PMendianMapper;
import com.ruoyi.hatha.domain.PMendian;
import com.ruoyi.hatha.service.IPMendianService;

/**
 * 门店管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-30
 */
@Service
public class PMendianServiceImpl implements IPMendianService 
{
    @Autowired
    private PMendianMapper pMendianMapper;

    /**
     * 查询门店管理
     * 
     * @param id 门店管理主键
     * @return 门店管理
     */
    @Override
    public PMendian selectPMendianById(Long id)
    {
        return pMendianMapper.selectPMendianById(id);
    }

    /**
     * 查询门店管理列表
     * 
     * @param pMendian 门店管理
     * @return 门店管理
     */
    @Override
    public List<PMendian> selectPMendianList(PMendian pMendian)
    {
        return pMendianMapper.selectPMendianList(pMendian);
    }

    /**
     * 新增门店管理
     * 
     * @param pMendian 门店管理
     * @return 结果
     */
    @Override
    public int insertPMendian(PMendian pMendian)
    {
        return pMendianMapper.insertPMendian(pMendian);
    }

    /**
     * 修改门店管理
     * 
     * @param pMendian 门店管理
     * @return 结果
     */
    @Override
    public int updatePMendian(PMendian pMendian)
    {
        return pMendianMapper.updatePMendian(pMendian);
    }

    /**
     * 批量删除门店管理
     * 
     * @param ids 需要删除的门店管理主键
     * @return 结果
     */
    @Override
    public int deletePMendianByIds(Long[] ids)
    {
        return pMendianMapper.deletePMendianByIds(ids);
    }

    /**
     * 删除门店管理信息
     * 
     * @param id 门店管理主键
     * @return 结果
     */
    @Override
    public int deletePMendianById(Long id)
    {
        return pMendianMapper.deletePMendianById(id);
    }
}
